﻿using Max.PH5_2010A.Shopping.Domain;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Max.PH5_2010A.Shopping.DataAccess
{
    public class MaxPH52010AShoppingDbContext:DbContext
    {
        public MaxPH52010AShoppingDbContext(DbContextOptions<MaxPH52010AShoppingDbContext> options) : base(options) { }

        public DbSet<MemberModel> Members { get; set; }
        public DbSet<MemberAddressModel> MemberAddresses { get; set; }

        #region 2023/4/25 商品模块
        public DbSet<ProductSKUImageModel> ProductSKUImages { get; set; }
        public DbSet<ProductSKUModel> ProductSKUs { get; set; }
        public DbSet<ProductSPUModel> ProductSPUs { get; set; }
        public DbSet<CategoryModel> Categories { get; set; }
        public DbSet<BrandModel>  Brands { get; set; }

        #endregion

        #region 2023/4/29 商品规格
        public DbSet<ProductSpecModel>  Specs { get; set; }
        public DbSet<ProductCategorySpecModel> CategorySpecs { get; set; }
        public DbSet<ProductCategorySpecValueModel> CategorySpecValues { get; set; }
        #endregion

        #region 2023/5/8 城市表
        public DbSet<SystemCityModel> SystemCities { get; set; }

        public DbSet<OrderDetailModel> OrderDetails { get; set; }
        public DbSet<OrderMasterModel> OrderMasters { get; set; }

        #endregion
    }
}
